import request from '@/utils/request'

// 查询休假规则列表
export function listHoliday(query) {
  return request({
    url: '/system/holiday/list',
    method: 'get',
    params: query
  })
}

// 查询休假规则详细
export function getHoliday(id) {
  return request({
    url: '/system/holiday/' + id,
    method: 'get'
  })
}

// 新增休假规则
export function addHoliday(data) {
  return request({
    url: '/system/holiday',
    method: 'post',
    data: data
  })
}

// 修改休假规则
export function updateHoliday(data) {
  return request({
    url: '/system/holiday',
    method: 'put',
    data: data
  })
}

// 删除休假规则
export function delHoliday(id) {
  return request({
    url: '/system/holiday/' + id,
    method: 'delete'
  })
}

// //新增休假列表
// export function addHoliday(data) {
//   return request({
//     url: '/system/holiday/addPc',
//     method: 'post',
//     data: data
//   })
// }
//获取技师列表
export function listtechnicianList(query) {
  return request({
    url: '/system/technician/normalList',
    method: 'get',
    params: { ...query, pageSize: 10000 }
  })
}